using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using Crossborder.Common.RedisModule;
using Crossborder.Core.Repository;
using Crossborder.Domian.Orders;
using Crossborder.IService;

namespace Crossborder.Service.Orders
{
    public partial class OrderService : IOrderService
    {
        public IRepository<OrderMaster> _OrderMasterRepo { get; }
        public IRepository<OrderDetail> _OrderDetailRepo { get; }
        public IMapper _Mapper { get; }
        public RedisWorker _Redis { get; set; }
        public OrderService(IRepository<OrderMaster> orderMasterRepo,
            IRepository<OrderDetail> orderDetailRepo,
            IMapper mapper,
            RedisWorker redisWorker)
        {
            _OrderMasterRepo = orderMasterRepo;
            _OrderDetailRepo = orderDetailRepo;
            _Mapper = mapper;
            _Redis = redisWorker;
        }
    }
}